package com.hospital.centerone.service.Impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hospital.centerone.dao.AreaDao;
import com.hospital.centerone.entity.Area;
import com.hospital.centerone.service.AreaService;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class AreaServiceImpl implements AreaService {
    @Resource
    private AreaDao areaDao;
    @Override
    public List<Area> findAllArea(Area area) {
        return areaDao.findAllArea(area);
    }

    @Override
    public int deleteArea(Integer area_id) {
        return areaDao.deleteArea(area_id);
    }

    @Override
    public int addArea(Area area) {
        return areaDao.addArea(area);
    }


    @Override
    public int count(Area area) {
        return areaDao.count(area);
    }

	@Override
	public int editArea(Area area) {
		return areaDao.editArea(area);
	}
}
